package org.jsbd.boss.util;

import java.text.DecimalFormat;

public class BigDecimalUtil {
	
	public static float divideToIntegralValue(int dividend, int divisor) {
	    DecimalFormat df=new DecimalFormat("0.00");
		return Float.valueOf(df.format((float)dividend/divisor));
	}
	
	public static double divideToLongValueDouble(long dividend, long divisor) {
	    DecimalFormat df=new DecimalFormat("0.00");
		return Double.valueOf(df.format((float)dividend/divisor*100));
	}

}
